package com.ledi.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 账单收费项关系表
 * </p>
 *
 * @author zhongxp
 * @since 2018-08-22
 */
@TableName("t_bill_item_map")
public class BillItemMap extends Model<BillItemMap> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 账单ID，对应t_bill表的ID
     */
	@TableField("bill_id")
	private Long billId;
    /**
     * 收费项ID；对应t_school_pay_item表的ID
     */
	@TableField("item_id")
	private Long itemId;
	@TableField("create_time")
	private Date createTime;
	@TableField("creator_role")
	private String creatorRole;
	@TableField("creator_id")
	private Long creatorId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getBillId() {
		return billId;
	}

	public void setBillId(Long billId) {
		this.billId = billId;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreatorRole() {
		return creatorRole;
	}

	public void setCreatorRole(String creatorRole) {
		this.creatorRole = creatorRole;
	}

	public Long getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "BillItemMap{" +
			"id=" + id +
			", billId=" + billId +
			", itemId=" + itemId +
			", createTime=" + createTime +
			", creatorRole=" + creatorRole +
			", creatorId=" + creatorId +
			"}";
	}
}
